$OpenBSD: patch-configure_ac,v 1.1 2015/11/16 15:10:46 sthen Exp $
--- configure.ac.orig	Mon Nov 16 12:04:47 2015
+++ configure.ac	Mon Nov 16 12:05:03 2015
@@ -88,7 +88,7 @@ AS_IF([test "x$with_libopenjpeg" != xno],
   AC_CHECK_LIB([openjp2], [opj_create_decompress],
     [
       AC_DEFINE([HAVE_LIBJP2K], 1, [Define to 1 if you have libopenjp2.]) AC_SUBST([LIBJP2K_LIBS], [-lopenjp2])
-      [AC_CHECK_HEADERS([openjpeg-2.2/openjpeg.h openjpeg-2.1/openjpeg.h openjpeg-2.0/openjpeg.h],
+      [AC_CHECK_HEADERS([openjp2/openjpeg.h openjpeg-2.2/openjpeg.h openjpeg-2.1/openjpeg.h openjpeg-2.0/openjpeg.h],
        AC_DEFINE_UNQUOTED([LIBJP2K_HEADER], [<$ac_header>], [Path to <openjpeg.h> header file.]) break)]
     ],
     AS_IF([test "x$with_libopenjpeg" = xyes], AC_MSG_ERROR([libopenjp2 support requested but library not found]))
